<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>查看数据</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../assets/libs/layui/css/layui.css" media="all">
</head>

<body>

    <form class="layui-form" lay-filter="example">

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">影人编号:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="performerId" disabled="true" autocomplete="off" id="performerId"
                    class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">影人名称:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="performerName" lay-verify="title" autocomplete="off" disabled="true"
                    id="performerName" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">影人类型:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="performerType" lay-verify="title" autocomplete="off" disabled="true"
                    id="performerType" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">影人头像:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <img disabled type="text" name="performerImg" height="50" width="50" id="performerImg" alt="" />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">影人介绍:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="performerContent" lay-verify="required" disabled="true" id="performerContent"
                    autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>

    <script src="../../assets/libs/layui/layui.js" charset="utf-8"></script>
    <script src="../js/util.js" charset="utf-8"></script>
    <script>
        layui.config({
            base: '/module/'
        }).use(['jquery', 'layer', 'table', 'form', 'config'], function () {
            var $ = layui.jquery;
            var layer = layui.layer;
            var table = layui.table;
            var form = layui.form;
            var config = layui.config;
            var req = GetRequest();
            var no = req['editNo'];
            $.ajax({
                url: config.base_server + 'getPerformerById?editNo=' + no,
                dataType: 'json',
                type: 'get',
                success: function (data) {
                    data = data.data;
                    $('#performerId').val(data[0].performerId);
                    $('#performerName').val(data[0].performerName);
                    $('#performerImg').attr('src', data[0].performerImg);
                    $('#performerType').val(data[0].performerType);
                    $('#performerContent').val(data[0].performerContent);
                }
            })
        });
    </script>


</body>